<!doctype html>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<html>
    <head>
        <style>
            .forMask{
                width: 100%;
                height: 100%;
                position:absolute;
            }
        </style>
        <%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
        <%@ include file="/WEB-INF/views-jsp/include/taglib/taglib.jsp" %>
        <%@ include file="/WEB-INF/views-jsp/include/meta/meta.jsp" %>
        <%@ include file="/WEB-INF/views-jsp/include/link/link.jsp" %>
        <%@ include file="/WEB-INF/views-jsp/include/script/script.jsp" %>
        <link rel="stylesheet" type="text/css" href="${path}/html/css/jquery.loadmask.css" />
        <script language="javascript" src="${path}/html/js/js-jsp/jquery.loadmask.js"></script>
        <script type="text/javascript" src="${path}/html/js/js-jsp/wo/repairCard/repairCardOption.js?v=<%out.print(Math.random());%>"></script>
    </head>
    <body>
        <div class="forMask">
        </div>
        <div class="place">
            <span>当前位置：</span>
            <ul class="placeul">
                <li><a href="${path}/repairCard/index.do?prId=${projectId}">补卡录入</a></li>
                <c:if test="${repairCard.repairCardId == null}">
                    <li><a >添加补卡</a></li>
                </c:if>
                <c:if test="${repairCard.repairCardId  != null}">
                    <li><a>修改补卡</a></li>
                </c:if>
            </ul>
        </div>
        <form id="repairCard_form" class="form" method="post" action="#">
            <div class="formbody">
                <div style="margin-top: 40px;"><span></span></div>
                <ul class="forminfo">
                    <li>
                        <input type="hidden" name="userId" id="userId_" value="${repairCard.userId}"/>
                        <input type="hidden" name="repairCardId" id="repairCardId_" value="${repairCard.repairCardId}"/>
                        <input type="hidden" name="projectId"  id="prId_" value="${projectId}"/>
                        <input type="hidden" name="userName"  id="userNameHd_" value="${repairCard.userName}"/>
                        <label style="text-align:right;">人员姓名：</label>
                        <input class="easyui-combobox" id="userName_" validType="selectNotEmpty['人员姓名']" style="width:255px; height: 30px"
                               data-options="editable:false,required:true"  />
                    </li>
                    <li>
                        <label style="text-align:right;">身份证号：</label>
                        <input class="easyui-textbox" id="idCard_" name="idCard" style="width:255px; height: 30px" readonly="true"
                               value="${repairCard.idCard}" prompt="选择姓名后自动填充"/>
                    </li>
                    <li>
                        <label style="text-align:right;">所属项目：</label>
                        <input class="easyui-textbox" id="projectName_" style="width:255px; height: 30px" readonly="true"
                               value="${projectName}" prompt="选择姓名后自动填充"/>
                    </li>
                    <li>
                        <label style="text-align:right;">性别：</label>
                        <input class="easyui-textbox" id="sex_" name="sex" style="width:255px; height: 30px" readonly="true"
                               value="${repairCard.sex}" prompt="选择姓名后自动填充"/>
                    </li>
                    <li>
                        <label style="text-align:right;">班组：</label>
                        <input class="easyui-textbox" id="groupName_" name="groupName" style="width:255px; height: 30px" readonly="true"
                               value="${repairCard.groupName}" prompt="选择姓名后自动填充"/>
                    </li>
                    <li>
                        <label style="text-align:right;">补卡日期：</label>
                        <input class="easyui-datebox" id="cardRepairDate_" name="cardRepairDate"  style="width:255px; height: 32px"
                               data-options="prompt:'请选择补卡日期',editable:false,required:'true',onChange:mainDateChange" missingMessage="补卡日期不能为空"
                               value="${repairCard.cardRepairDate}" >
                    </li>
                    <li>
                        <label style="text-align:right;">补卡开始时间：</label>
                        <input class="easyui-datetimebox" id="repairStartDate_"  name="repairStartDate" style="width:255px; height: 32px"
                               data-options="prompt:'请选择补卡开始时间',editable:false,required:'true',onChange:onSelectT" missingMessage="补卡开始时间不能为空"
                               value="${repairCard.repairStartDate}" >
                    </li>
                    <li>
                        <label style="text-align:right;">补卡结束时间：</label>
                        <input class="easyui-datetimebox" id="repairEndDate_" name="repairEndDate"  style="width:255px; height: 32px"
                               data-options="prompt:'请选择补卡结束时间',editable:false,required:'true',onChange:onSelectT" missingMessage="补卡结束时间不能为空"
                               value="${repairCard.repairEndDate}" >
                    </li>
                    <li>
                        <label style="text-align:right;">补卡工时：</label>
                        <input class="easyui-numberbox" id="workingHours_" name="workingHours" style="width:255px; height: 32px" readonly="true" value="${repairCard.workingHours}"
                               prompt="选择开始和结束日期后自动计算">
                    </li>
                    <li>
                        <label style="text-align:right;">补卡原因：</label>
                        <input class="easyui-textbox" name="repairReason"  id="repairReason_" data-options="multiline:true,prompt:'请输入补卡原因',
                            validType:'length[1,200]'" style="width:255px; height:80px" value="${repairCard.repairReason}"/>
                    </li>
                    <li>
                        <input type="hidden" name="repairPerson"  id="repairPersonId_" value="${repairCard.repairPerson}"/>
                        <label style="text-align:right;">补卡人：</label>
                        <input class="easyui-textbox" id="repairPersonName_" style="width:255px; height: 30px" readonly="true"
                               value="${repairPersonName}" prompt="选择姓名后自动填充"/>
                    </li>
                    <li>
                        <label style="text-align:right;">录入时间：</label>
                        <input class="easyui-textbox" id="entryDate_" name="entryDate" style="width:255px; height: 30px" readonly="true"
                               value="${entryDate}" prompt="选择姓名后自动填充"/>
                    </li>
                </ul>
            </div>
        </form>
        <div class="formbody" style="margin-left: 110px">
            <a id="optionrepairCard" class="easyui-linkbutton c1" style="width:120px; height: 35px">保存</a>
            &nbsp;&nbsp;&nbsp;
            <a href="${path}/repairCard/index.do?prId=${projectId}" class="easyui-linkbutton c1" style="width:120px; height: 35px">返回</a>
        </div>
    </body>
</html>